//
//  MartinsNewInputView.h
//  NLProjectFrameworkDemo
//
//  Created by iosdeveloper on 2020/4/24.
//  Copyright © 2020 yj_zhang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZZEmojiTextView.h"
#import "MatinsIMinitModel.h"

NS_ASSUME_NONNULL_BEGIN

#define leftMantisMargin  adaptWidth750(15*2)
#define leftMantisSpace  adaptWidth750(10*2)
#define senBtnGrayColor [UIColor jk_colorWithHexString:@"#C9D1D4"]



@interface MartinsNewInputView : UIView<UITextViewDelegate>

@property(nonatomic,strong)ZZEmojiTextView *textField;
@property (nonatomic,strong) UIButton *imgBtn;  //图片
@property (nonatomic,strong) UIButton *faceBtn;
@property (nonatomic,strong) UIView *inputView;
@property(nonatomic,strong)UIButton*sendBtn;//发送

@property(nonatomic,copy)void(^callBackStr)(NSString *str);
@property(nonatomic,copy)dispatch_block_t photoBlock;
//展示输入的内容
@property (nonatomic,strong) UILabel *showLabel;

//label上面显示用
-(NSMutableAttributedString*)changeMessage:(NSString *)str;
//传给服务器用的
-(NSString*)changeEmojiMessage:(NSString *)str;
//从服务器拿下来的资源转为图片
-(NSMutableAttributedString*)getEmojiMessage:(NSString *)str;
//从服务器拿下来的资源转为richStr
-(NSString*)getEmojiMessageStr:(NSString *)str;
//清空操作
-(void)clearAllText:(MartinsNewInputView*)inputView;

//刷新发送界面配置
-(void)reloadSendView:(MatinsIMinitModel *)model;
@end

NS_ASSUME_NONNULL_END
